<?php
$whitelist = array('localhost', '127.0.0.1', 'localhost:8080', '127.0.0.1:8080');

/* DATABASE SETTINGS */
if(!in_array($_SERVER['HTTP_HOST'], $whitelist))
	define('HOST', '127.0.0.1'); //Database host   (default is 'localhost')
else
	define('HOST', '91.208.131.247'); //Database host   (default is 'localhost')

define('PORT', '3306');     //Database port   (default is '3306')
define('USER', 'rskms_rskms');   //Database username  (default is 'admin_kms')
define('PASS', 'kms');     //Database password  (default is 'kms')
define('DB', 'rskms_kms');    //Database name   (default is 'admin_kms')

/* KEYWORDS */
define('DS', DIRECTORY_SEPARATOR);
define('APP_PATH', realpath(dirname(__FILE__)) . DS);
define('APP_VIEW_PATH', realpath(dirname(__FILE__)) . DS . 'view' . DS);
define('APP_OBJ_PATH', realpath(dirname(__FILE__)) . DS . 'obj' . DS);
define('APP_TPL_PATH', realpath(dirname(__FILE__)) . DS . 'tpl' . DS);
define('APP_LOG_PATH', realpath(dirname(__FILE__)) . DS . 'data' . DS . 'logs' . DS . 'error.log');
define('APP_XML_PATH', realpath(dirname(__FILE__)) . DS . 'data' . DS . 'xml' . DS);
define('APP_EXCEL_PATH', realpath(dirname(__FILE__)) . DS . 'data' . DS . 'excel' . DS);
define('APP_LIB_PATH', realpath(dirname(__FILE__)) . DS . 'lib' . DS);

/* ENCRYPTION SETTINGS */
define('KEY', 'UWQHxtEa36yt3UuTlLpJB3sHP6Y89NiYpnaCP22FTnDzdCKWal44bIxSGNyLx8L6');

/* MISC SETTINGS */


if(!in_array($_SERVER['HTTP_HOST'], $whitelist))
	define('DEBUG_MODE', false);
else
	define('DEBUG_MODE', true);


define('isIncluded', false);


?>